import { useContext } from "react"
import {myContext} from './parent'

export default ()=>{

    let {msg,num} = useContext(myContext);

    return(
        <>
        <h4>组件3</h4>
        <p>{msg}----{num}</p>
        </>
    )
}